package com.blb.service;

import com.blb.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.entity.Sort;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wss
 * @since 2020-05-22
 */
public interface IProductService extends IService<Product> {

    /**
     * 增加
     *
     * @param product
     * @return
     */
    public int addProduct(Product product);

    /**
     * 单查询
     *
     * @param id
     * @return
     */
    public Product productById(String id,String companyId);

    /**
     * 条件查询
     *
     * @param productName
     * @param productType
     * @return
     */
    public Product productByNameOrType(String productName, String productType,String companyId);

    public List<Product> getProductList(Integer start, Integer length, String productName, Integer status,String companyId);

    public int getProductCount(String pname, Integer status,String companyId);

    public List<Sort> getSort(String companyId);

    public List<Sort> getSorts(String sortId,String companyId);

    public List<Sort> getSortss(String sortId,String companyId);

    public Product productByIds(String id,String companyId);

    public int productStates1(String id,String companyId);

    public int productStates2(String id,String companyId);

    public int examineStates1(String id,String companyId);

    public int examineStates2(String id,String companyId);

    public int states1(String companyId);

    public int states2(String companyId);

    public int states3(String companyId);

    public int productByIdss(String id);

}
